<?php
namespace Home\Controller;

use Think\Controller;

class BaseController extends Controller
{
    public function __construct(){
        parent::__construct();

        /*$wechat_id = I('request.wechat_id', '')!=='' ? I('request.wechat_id', '', 'trim') : ajax_return(500, '获取用户信息失败');
        $user = M('user')->where(['wechat_id'=>$wechat_id])->find();
        if(!$user){
            ajax_return(400, '获取用户信息失败');
        }
        session('user', $user);*/
    }
}